<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="{{route('store)}}" method="post">
        姓名： <input type="text" name="name" id="">
        邮件： <input type="text" name="email" id="">
        年龄： <input type="text" name="age" id="">
        爱好： <input type="checkbox" name="hobby" id="">足球
        <input type="checkbox" name="hobby" id="">篮球
        <input type="checkbox" name="hobby" id="">排球<br>
        {{csrf_field()}}
        <input type="sumbit" value="保存">
    </form>
    @if($erros->any)
    @if ($erros->has('name'))
    姓名格式错误
    @endif
    @foreach ($errors->get('name') as $message)
    {{$message}}
    @endforeach
    <div class="alert alert-danger">
        <ul>
            @foreach($erros->all() as $error)
            <li>{{$error}}</li>
            @endforeach
        </ul>
    </div>
    @endif
</body>

</html>